Skip to content

Make sure kernel parameters are aligned#20639

Merged
TurboGit merged 1 commit intodarktable-org:masterfrom
jenshannoschwalm:fix_opencl_float4
Mar 24, 2026
Merged

Make sure kernel parameters are aligned#20639
TurboGit merged 1 commit intodarktable-org:masterfrom
jenshannoschwalm:fix_opencl_float4

Conversation

@jenshannoschwalm
Copy link
Collaborator

If a kernel uses a float4 parameters that should be passed via CLARG() as that makes sure it's aligned to it's size on the parameter stack and we can avoid the CLFLARRAY() macro.

If a kernel uses a float4 parameters that should be passed via CLARG() as that makes sure
it's aligned to it's size on the parameter stack and we can avoid the CLFLARRAY() macro.
Copy link
Member

@TurboGit TurboGit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@TurboGit TurboGit merged commit 2558419 into darktable-org:master Mar 24, 2026
5 checks passed
@jenshannoschwalm jenshannoschwalm deleted the fix_opencl_float4 branch March 24, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix pull request fixing a bug OpenCL Related to darktable OpenCL code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants